﻿using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

namespace AppServices
{
	public static class DataContext
	{
		#region Private fields
		private static NORTHWNDEntities m_DataContext;
		#endregion

		#region Public methods
		/// <summary>
		/// Gets the data context.
		/// </summary>
		/// <returns></returns>
		public static NORTHWNDEntities GetDataContext()
		{
			if (null == m_DataContext)
			{
				m_DataContext = new NORTHWNDEntities();
			}

			return m_DataContext;
		}
		
		#endregion
	}
}
